

#ifndef __UI_H
#define __UI_H


#include "commen.h"

#include "disp_manager.h"

#include "input_manager.h"



#define BUTTON_DEFAULT_COLOR 0xff0000
#define BUTTON_PRESSED_COLOR 0x00ff00
#define BUTTON_ADVANCE_COLOR 0x0000ff

#define BUTTON_TEXT_COLOR 0x000000



struct Button;


typedef int (*DRAWBUTTON)(struct Button * pbutton,DispBuff_p pDisbuff);
typedef int (*CHECKED)(struct Button * pbutton,DispBuff_p pDisbuff, inputEvent_p inputEventp);



typedef struct Button {


	int status;
	char* name;
	struct Region tRegion;

	DRAWBUTTON DrawButton;
	CHECKED    Checked;





}tButton,*pButton;








void InitButton(char * name, pButton pbutton, Region_p prigion, DRAWBUTTON drawbutton, CHECKED  checked);



#endif





